package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.domain.dto.MenuLIstDto;
import org.example.domain.entity.Menu;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> getAllMenu();

    List<String> selectPermsByUserId(Integer userId);

    List<Menu> selectPermsByAdmin();

    List<Menu> selectAllRouterMenu();

    List<Menu> selectRouterMenuTreeByUserId(Integer userId);

    List<Menu> selectAllMenu();

    List<Menu> selectMenuByRoleId(Integer roleId);

    List<Menu> getMenuList(MenuLIstDto menuLIstDto);

    List<Menu> selectByPath(String path);
}
